package com.yhn.init.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 采购清单
 *
 * @author yhn
 * @version 1.0
 * @description
 * @date 2024/3/22 9:42
 */
@Data
@TableName(value = "purchase")
public class Purchase implements Serializable {
    /**
     * 采购清单ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 物品ID
     */
    private Long itemId;

    /**
     * 入库数量
     */
    private Integer quantity;

    /**
     * 入库时间
     */
    private Date inboundDate;

    /**
     * 物品类型
     */
    private Integer type;
    /**
     * 库存
     */
    private String status;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
